package com.zhdl.modules.common.warn.entity;


import com.project.common.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Table(name = "common_records_warn")
public class WarnRecords extends BaseEntity<WarnRecords, String> {

    @Id
    private String id;

    //报警的寄存器地址
    private String warnAddress;

    //报警的类型
    private Integer warnType;

    //报警处理的类型   01 报警 10 复位
    private String operationType;

    //报警的详情
    private String warnInfo;

    //报警的开始时间
    private String warnStartTime;

    //报警的结束时间
    private String warnEndTime;

    public WarnRecords(Integer warnType, String warnInfo) {
        this.warnType = warnType;
        this.warnInfo = warnInfo;
    }
}
